<div class="ads">
	<?php
	foreach ($data as $value) :?>
		<div class="banner">
			<a href="<?=$value['link']?>"><img src="<?=Yii::app()->baseUrl?>/images/ads/<?=$value['cover_photo']?>"></a>
		</div>
	<?php endforeach;?>
</div>